/*
 ============================================================================
 Name		: VibraMassagerSettingList.cpp
 Author	  : 
 Version	 : 1.0
 Copyright   : Your copyright notice
 Description : CVibraMassagerSettingList implementation
 ============================================================================
 */

#include <coemain.h>
#include "VibraMassagerSettingList.h"

CVibraMassagerSettingList::CVibraMassagerSettingList()
	{
	// No implementation required
	}

CVibraMassagerSettingList::~CVibraMassagerSettingList()
	{
	}

CVibraMassagerSettingList* CVibraMassagerSettingList::NewLC()
	{
	CVibraMassagerSettingList* self = new (ELeave) CVibraMassagerSettingList();
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

CVibraMassagerSettingList* CVibraMassagerSettingList::NewL()
	{
	CVibraMassagerSettingList* self = CVibraMassagerSettingList::NewLC();
	CleanupStack::Pop(); // self;
	return self;
	}

void CVibraMassagerSettingList::ConstructL()
	{
	}
// ---------------------------------------------------------------------------
// CVibraMassagerSettingList::CreateSettingItemL()
// Creates setting item
// ---------------------------------------------------------------------------
//  	
CAknSettingItem* CVibraMassagerSettingList::CreateSettingItemL(TInt aSettingId)
	{
	CAknSettingItem* settingItem = NULL;

	switch (aSettingId)
		{
		default:
			break;
		}

	return settingItem;
	}

// ---------------------------------------------------------------------------
// CVibraMassagerSettingList::EditItemL()
// Edits setting item data.
// ---------------------------------------------------------------------------
//    
void CVibraMassagerSettingList::EditItemL(TInt aIndex, TBool aCalledFromMenu)
	{
	TInt
			currentItem =
					((CAknSettingItemList*) this)->ListBox()->View()->CurrentItemIndex();
	CAknSettingItemList::EditItemL(currentItem, aCalledFromMenu);
	(*SettingItemArray())[aIndex]->UpdateListBoxTextL();
	(*SettingItemArray())[aIndex]->StoreL();

	}